<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/xadmin.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/font.css">
<link rel="stylesheet" href="<%=basePath%>css/xadmin.css">
<script src="<%=basePath%>lib/layui/layui.js" charset="utf-8"></script>
<script src="<%=basePath%>lib/layui/css/layui.css" charset="utf-8"></script>
<script src="<%=basePath%>js/pc/admin/subclassManagement.js" charset="utf-8"></script>
<style type="text/css">
.layui-table-fixed-r td {
	height: 58px !important;
}

#LAY-user-manage img {
	max-width: 100px;
	min-height: 150px;
}

#LAY-user-manage cassas-cell {
	height: auto;
	line-height: 28px;
}
</style>
</head>
<body class="layui-anim layui-anim-up">
	<div class="x-nav">
		<span class="layui-breadcrumb"> <a>子类管理</a> <a> <cite>导航元素</cite></a>
		</span>     <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height: 35px;"></i></a>
	</div>
	<div style="float: left;">
		<div class="layui-form-item">
			<label class="layui-form-label"> 请选择大类:</label>
			<div class="layui-input-block">
				<select id="bigClass" onchange="findSmallClass()">
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> 请选择小类:</label>
			<div class="layui-input-block">
				<select id="smallClass" onchange="findSubClass()">
					<option selected="selected" value="">先在这里选择二级分类</option>
				</select>
			</div>
		</div>
	</div>
	<script type="text/javascript">


</script>
	<table id="smallClass" class="layui-table">
		<thead>
			<tr>
				<th>名称</th>
				<th>图片</th>
				<th>操作</th>
			</tr>
		</thead>
		<thead>
			<tr style="background-color: #ffffff;">
				<th>名称：<input class="form-control names" type="text" value="">
					<input id="Parentlevelid" class="Parentlevelid" type="hidden"
					value=""><br>
				<th><div class="layui-upload">
						<button type="button" class="layui-btn" id="test1">上传图片</button>
						<div class="layui-upload-list">
							<img class="layui-upload-img" id="demo1"><input
								id="fileupload" class="fileupload" type="hidden" value="">
							<p id="demoText"></p>
						</div>
					</div></th>
				<th><button type="button" class="layui-btn" onclick="add(this)">添加</button></th>
			</tr>
		</thead>
	</table>
	<table class="layui-table"
		lay-data="{url:'selectBycParentlevelid.do', page:true, id:'test',toolbar:true,limits:[5,10,20,30,40,50,100,200,300,500,1000,1500,2000,4000,6000,10000,10000000] }"
		id="LAY-user-manage" lay-filter="test">
		<thead>
			<tr>
				<!-- <th lay-data="{checkbox: true, LAY_CHECKED: false, filter:'test'}"></th> -->
				<th lay-data="{field:'id'}">序号</th>
				<th lay-data="{field:'getName'}">名称</th>
				<th lay-data="{field:'CreateTime'}">图片</th>
				<th lay-data="{field:'button'}">操作</th>
			</tr>
		</thead>
	</table>
</body>
</html>